home *** CD-ROM | disk | FTP | other *** search
/ MacSilverWare / macsilverware.iso / Utilities / Zterm / ZTerm 0.9 Scripting < prev    next >
Text File  |  1992-02-10  |  2KB  |  40 lines

  1. ZTerm Scripting Quick Reference
  2.  
  3. When ZTerm connects to a service, it will look for a text file with the same name as the service with a “.zts” on the end.  For GEnie, it will look for a file called “GEnie.zts” in the ZTerm folder.  If it finds a file, it will run the script.  Also, you can run a script from a macro by putting ® (option-R) followed by the file name in for the macro string. For example, "®GetMail.zts".
  4.  
  5. String constants can use any form of quote:  "one", 'two', “three”, ‘four’
  6. Control characters in a string constant are specified with the ^ (carat) followed by the letter:  "^M" is control-M, which is the Return character.
  7.  
  8. Built-in variables
  9. $Account - string in the connection dialog
  10. $Password - string in connection dialog
  11. $Service - name of current service
  12. $Date - in the short format
  13. $Time - in hours, minutes and seconds
  14. $Day, $dd - day of month ($dd has zero fill)
  15. $mm - month
  16. $year
  17. $yy - low two digits of year
  18.  
  19. Commands
  20.  
  21. Beep
  22. Beep 4 ticks -- if you are using the simple beep, you can give a duration.
  23. Close capture -- close the capture file.
  24. Display “Connected at ” $time -- display text in the terminal window
  25. Hangup -- hangup the modem (same as the menu command)
  26. Open capture "GEnie.log" -- start capturing data to a file.
  27. Send “CIS^M” -- send the string (^M is a return)
  28. Send $account “,” $password “^M” -- send multiple strings
  29. Wait 2 seconds -- pause a specified amount of time
  30. Wait 40 ticks  -- a tick on the Mac is 1/60 second (40 ticks is 2/3 second)
  31. Wait for quiet 4 seconds -- wait for no incoming data for the specified time.
  32. Wait for prompt “Username:” -- check for the given string when data stops.
  33.  
  34.  
  35. Comments
  36. -- HyperCard style comments
  37. # MPW style comments
  38. ;  another comment character.
  39.  
  40.